Skip to content

Improve typing of inject#57

Merged
RobertoPrevato merged 1 commit intoNeoteroi:mainfrom
sobolevn:patch-2
Mar 8, 2026
Merged

Improve typing of inject#57
RobertoPrevato merged 1 commit intoNeoteroi:mainfrom
sobolevn:patch-2

Conversation

@sobolevn
Copy link
Contributor

globals() and locals() are both returning dict[str, Any]:

inject only add two protected attributes to a function / type. So, we can say that it returns the object unchanged: T -> T.

@RobertoPrevato RobertoPrevato merged commit 8bea9fe into Neoteroi:main Mar 8, 2026
@RobertoPrevato
Copy link
Member

Very good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants